package sing.core.util

import android.content.Context
import android.content.Intent

/**
 * @Author:         Sing
 * @CreateDate:     2021/9/26 15:19
 * @Description:    广播相关
 */
object BroadcastUtil {

    // 登录过期
    const val ACTION_LOGIN_EXPIRE = "action_login_expire"

    // 登录过期
    fun setLoginExpire(context: Context) {
        val intent = Intent()
        intent.action = ACTION_LOGIN_EXPIRE
//        intent.putExtra("music_id",musicId)
        context.sendBroadcast(intent)
    }
}
